package main

import cmd2 "jvm/cmd"

func main() {
	args := []string{"com.dkd.test.Main",
		"--classpath", "E:\\workspace\\stu-kafka\\TestGo\\target\\classes",
		"", "--xjre", "D:\\app\\env\\jdk8\\jre"}
	cmd := cmd2.ParseCmd(args)

	if cmd.VersionFlag {
		println("version 0.0.1")
	} else if cmd.HelpFlag || cmd.Class == "" {
		cmd2.PrintUsage()
	} else {
		cmd2.NewJVM(cmd).Start()
	}
}
